package com.faithbj.device.web.controller.admin;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * <p>Copyright: Copyright (c) 2011</p> 
 * 
 * <p>Company: www.faithbj.com</p>
 * 
 * @author 	faithbj
 * @date 	2011-12-16
 * @version 1.0
 */

@Controller
@RequestMapping("/faith")
public class AdminController extends BaseAdminController {

	private static final long serialVersionUID = 6874927315861247958L;


	// 登录页面
	@RequestMapping(value="loginview",method = RequestMethod.GET)
	public String login() {
		
		return "admin/login";
	}
	
	
	/**
	 *  后台Header
	 * @return
	 */
	@RequestMapping(value="/header",method = RequestMethod.GET)
	public String header() {
		return "admin/header";
	}
	
	/**
	 * 后台首页主框架入口
	 * @return
	 */
	@RequestMapping(value="/index",method = RequestMethod.GET)
	public String index(ModelMap data) {
		return "admin/main";
	}	
	
	/**
	 * 后台中间主页面
	 * @return
	 */
	@RequestMapping(value="/main",method = RequestMethod.GET)
	public String main() {
		return "admin/index";
	}
	
	/**
	 * 后台右侧菜单
	 * @return
	 */
	@RequestMapping(value="/menu",method = RequestMethod.GET)
	public String menu() {
		return "admin/menu";
	}
	
	/**
	 * 后台左侧菜单
	 * @return
	 */
	@RequestMapping(value="/deviceinfo",method = RequestMethod.GET)
	public String product() {
		return "admin/menu_product";
	}	
	
	
/**
 * 后台中间(显示/隐藏菜单)
 * @return
 */
    @RequestMapping(value="/middle",method = RequestMethod.GET)
	public String middle() {
		return "admin/middle";
	}
	
}
